package com.yoso.shop.application.service;

import com.yoso.base.service.IBaseService;
import com.yoso.shop.domain.dictionary.DictionaryEntityExample;
import com.yoso.shop.interfaces.vo.commodity.CommodityVo;
import com.yoso.shop.interfaces.vo.dictionary.DictionaryVo;

import java.util.List;
import java.util.Map;

/**
 * @author yoso
 * @date 2022/2/20
 */
public interface IDictionaryService extends IBaseService<DictionaryVo, DictionaryEntityExample> {
    /**
     * 获取目标分组数据
     */
    List<DictionaryVo> getDataByGroup(String group);

    /**
     * 获取目标分组数据
     */
    List<DictionaryVo> getDataByGroup(List<String> groupList);

    /**
     * 获取轮播图，热词，新闻数据
     */
    Map<String, List<DictionaryVo>> getData();

    /**
     * 修改商品标签
     */
    int updateCommodityTags(CommodityVo vo);
}
